#ifndef __PARAM_H__
#define __PARAM_H__

#include <stdint.h>

typedef struct _ssl_connect
{
    uint8_t enable;
    uint8_t path[20];
}ssl_connect_t;

typedef struct _g_param
{
    uint8_t addr[20];
    uint16_t port;

    uint8_t clientID[20];
    uint8_t username[20];
    uint8_t password[20];

    uint16_t keepAliveInterval;

    ssl_connect_t ca;
    ssl_connect_t client_crt;
    ssl_connect_t client_key;
}g_param_t;

extern g_param_t g_param;

/**
 * @brief 加载JSON文件中的配置
 */
void param_init();

#endif
